/**
 * 作者: wgx
 * 日期: 2024-10-15 14:08:07
 * 备注: 干员升级配置表
 */
package com.motu.monstercity.server.game.commondata.partner;

import io.vertx.core.json.JsonObject;

public class PartnerLevelUpModel {
    protected int level; // 等级
    protected long needItem; // 升级到此级所需道具数量
    protected int powerNum; // 战力系数
    protected int soldier; // 大世界行军时带兵数量

    public PartnerLevelUpModel() {
    }

    public PartnerLevelUpModel(JsonObject obj) {
        level = obj.containsKey("level") ? obj.getInteger("level") : 0;
        needItem = obj.containsKey("need_item") ? obj.getLong("need_item") : 0;
        powerNum = obj.containsKey("power_num") ? obj.getInteger("power_num") : 0;
        soldier = obj.containsKey("soldier") ? obj.getInteger("soldier") : 0;
    }

    public int getLevel() {
        return level;
    }

    public long getNeedItem() {
        return needItem;
    }

    public int getPowerNum() {
        return powerNum;
    }

    public int getSoldier() {
        return soldier;
    }

}
